package com.server.server.message.serialize;

import java.io.IOException;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public interface Serializer {
    <T> byte[] serialize(T obj) throws Exception;

    <T> T deSerialize(byte[] data,Class<T> clazz) throws IOException;
}

